#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import optparse
p = optparse.OptionParser()

p.add_option('-o', action='store', dest='outfile')
p.add_option('--output', action='store', dest='outfile')

p.add_option('-d', action='store_true', dest='debug')
p.add_option('--debug', action='store_true', dest='debug')

p.set_defaults(debug=False)

(opts, args) = p.parse_args()
sys.stdout.write(str(opts) + str(args) + '\n')

outfile = opts.outfile
debugmode = opts.debug

sys.stdout.write(str(outfile) + '\n')
sys.stdout.write(str(debugmode) + '\n')
